package vo;

public class Furniture { //家具表
    private int id; //商品编号
    private String type;//商品名称(种类)
    private int price;//商品价格
    private int count;//商品剩余数量

    public Furniture(int id, String type, int price, int count) {
        this.id = id;
        this.type = type;
        this.price = price;
        this.count = count;
    }

    public Furniture(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Furniture{" +
                "商品编号:" + id +
                ", 商品名称:" + type + '\'' +
                ", 商品价格:" + price +
                ", 剩余数量:" + count +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
